package com.wl.dzt.basic.entity;

import com.wl.dzt.sys.annotation.Column;
import com.wl.dzt.sys.annotation.Table;
import com.wl.dzt.sys.annotation.Transient;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;


@ApiModel("BasicDic")
@Table("basic_dic")
public class BasicDic implements Serializable {

    @ApiModelProperty(value = "是否可编辑", name = "allowEdit")
    @Column(value = "allow_edit", text = "是否可编辑", maxLength = 5)
    private String allowEdit;


    @ApiModelProperty(value = "字典键", name = "dicKey")
    @Column(value = "dic_key", text = "字典键", maxLength = 50)
    private String dicKey;


    @ApiModelProperty(value = "字典状态", name = "dicState")
    @Column(value = "dic_state", text = "字典状态", maxLength = 5)
    private String dicState;


    @ApiModelProperty(value = "字典值", name = "dicValue")
    @Column(value = "dic_value", text = "字典值", maxLength = 100)
    private String dicValue;


    @ApiModelProperty(value = "字典备注", name = "dicMemo")
    @Column(value = "dic_memo", text = "字典备注", maxLength = 32767)
    private String dicMemo;


    @ApiModelProperty(value = "编号", name = "id")
    @Column(value = "id", text = "编号", maxLength = 32)
    private String id;


    @ApiModelProperty(value = "字典排序", name = "dicSort")
    @Column(value = "dic_sort", text = "字典排序", maxLength = 5)
    private Integer dicSort;


    @ApiModelProperty(value = "上级字典", name = "dicParentId")
    @Column(value = "dic_parent_id", text = "上级字典", maxLength = 32)
    private BasicDic dicParentId;


    @ApiModelProperty(value = "字典类型", name = "dicType")
    @Column(value = "dic_type", text = "字典类型", maxLength = 5)
    private String dicType;

    @Transient
    private String iconCls = "fa-book-tree";

    @Transient
    private String cls = "x-tree-list-a";

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public String getCls() {
        return cls;
    }

    public void setCls(String cls) {
        this.cls = cls;
    }

    public String getAllowEdit() {
        return allowEdit;
    }

    public void setAllowEdit(String allowEdit) {
        this.allowEdit = allowEdit;
    }

    public String getDicKey() {
        return dicKey;
    }

    public void setDicKey(String dicKey) {
        this.dicKey = dicKey;
    }

    public String getDicState() {
        return dicState;
    }

    public void setDicState(String dicState) {
        this.dicState = dicState;
    }

    public String getDicValue() {
        return dicValue;
    }

    public void setDicValue(String dicValue) {
        this.dicValue = dicValue;
    }

    public String getDicMemo() {
        return dicMemo;
    }

    public void setDicMemo(String dicMemo) {
        this.dicMemo = dicMemo;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getDicSort() {
        return dicSort;
    }

    public void setDicSort(Integer dicSort) {
        this.dicSort = dicSort;
    }

    public BasicDic getDicParentId() {
        return dicParentId;
    }

    public void setDicParentId(BasicDic dicParentId) {
        this.dicParentId = dicParentId;
    }

    public String getDicType() {
        return dicType;
    }

    public void setDicType(String dicType) {
        this.dicType = dicType;
    }
}
